<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include/include :: header('修改字典类型')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="editForm" th:action="@{/admin/dict}" th:object="${viewobject}">
			<input id="id" name="id"  type="hidden" th:field="*{id}" />
			<input type="hidden" name="oper" id="oper" th:value="${oper}"/>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">字典名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="description" id="description" th:field="*{description}" maxlength="60" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">字典编码：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="type" id="type" th:field="*{type}" maxlength="60" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">字典类型：</label>
				<div class="col-sm-8">
					<div class="radio-box" th:each="dict : ${@dict.getType('dict_type')}">
						<input type="radio" th:id="${dict.id}" name="systemFlag" th:value="${dict.value}" th:field="*{systemFlag}">
						<label th:for="${dict.id}" th:text="${dict.label}"></label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<textarea id="remarks" name="remarks" maxlength="200" class="form-control">[[*{remarks}]]</textarea>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include/include :: footer" />
	<script th:src="@{/pages/sysadm/dict/dictEdit.js}"></script>
</body>
</html>
